package mfkvit;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;

public class WebSiteParams {
    static HashMap props;

    static {
        loadParams();
    }

    public static String getParamValue(String paramName) {
        return (String) props.get(paramName);
    }

    public static void loadParams() {
        JdbcBean dbutil = new JdbcBean();
        String condition = "select * from webDes";
        try {
            dbutil.execQueryName(condition);
        } catch (SQLException sqle) {
            sqle.printStackTrace();
        }
        ArrayList al = dbutil.getRS();
        props = (HashMap) al.get(0);
    }
}
